.class public Lcom/instagram/android/a/b/ag;
.super Ljava/lang/Object;
.source "SuggestedUserRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;)Landroid/view/View;
    .locals 5
    .parameter

    .prologue
    .line 82
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_suggested_user:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 83
    new-instance v2, Lcom/instagram/android/a/b/ai;

    invoke-direct {v2}, Lcom/instagram/android/a/b/ai;-><init>()V

    .line 84
    sget v0, Lcom/facebook/aw;->row_suggested_user_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->b:Lcom/instagram/android/mediacache/CircularImageView;

    .line 85
    sget v0, Lcom/facebook/aw;->row_suggested_user_description:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->c:Landroid/widget/TextView;

    .line 86
    sget v0, Lcom/facebook/aw;->row_suggested_user_username:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->d:Landroid/widget/TextView;

    .line 87
    sget v0, Lcom/facebook/aw;->row_suggested_user_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->e:Landroid/widget/TextView;

    .line 88
    sget v0, Lcom/facebook/aw;->row_suggested_user_follow_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/FollowButton;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->f:Lcom/instagram/android/widget/FollowButton;

    .line 89
    iget-object v3, v2, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    const/4 v4, 0x0

    sget v0, Lcom/facebook/aw;->row_suggest_user_imageview_1:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    aput-object v0, v3, v4

    .line 90
    iget-object v3, v2, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    const/4 v4, 0x1

    sget v0, Lcom/facebook/aw;->row_suggest_user_imageview_2:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    aput-object v0, v3, v4

    .line 91
    iget-object v3, v2, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    const/4 v4, 0x2

    sget v0, Lcom/facebook/aw;->row_suggest_user_imageview_3:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    aput-object v0, v3, v4

    .line 92
    iget-object v3, v2, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    const/4 v4, 0x3

    sget v0, Lcom/facebook/aw;->row_suggest_user_imageview_4:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    aput-object v0, v3, v4

    .line 93
    sget v0, Lcom/facebook/aw;->row_suggested_user_row:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, v2, Lcom/instagram/android/a/b/ai;->a:Landroid/view/ViewGroup;

    .line 94
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 95
    return-object v1
.end method

.method public static a(Lcom/instagram/android/a/b/ai;Lcom/instagram/android/model/n;Landroid/content/Context;Landroid/widget/BaseAdapter;Landroid/support/v4/app/r;ZZLandroid/support/v4/app/aj;)V
    .locals 7
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v6, 0x4

    const/16 v5, 0x8

    const/4 v1, 0x0

    .line 30
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->b:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 32
    invoke-virtual {p1}, Lcom/instagram/android/model/n;->b()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 33
    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 34
    iget-object v2, p0, Lcom/instagram/android/a/b/ai;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 35
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 40
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->d:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 42
    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->h()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 43
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->e:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->h()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 44
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 49
    :goto_1
    invoke-virtual {p1}, Lcom/instagram/android/model/n;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    move v2, v1

    .line 50
    :goto_2
    if-ge v2, v6, :cond_2

    if-ge v2, v3, :cond_2

    .line 51
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    aget-object v4, v0, v2

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v4, v0}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 50
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_2

    .line 37
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 46
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    .line 53
    :cond_2
    if-eqz p5, :cond_3

    .line 54
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->f:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    .line 55
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->f:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {p1}, Lcom/instagram/android/model/n;->a()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v0, v2, p7, v1}, Lcom/instagram/android/widget/FollowButton;->a(Lcom/instagram/android/model/b/e;Landroid/support/v4/app/aj;Z)V

    .line 60
    :goto_3
    if-eqz p6, :cond_5

    .line 61
    new-instance v2, Lcom/instagram/android/a/b/ah;

    invoke-direct {v2, p4, p1}, Lcom/instagram/android/a/b/ah;-><init>(Landroid/support/v4/app/r;Lcom/instagram/android/model/n;)V

    .line 68
    invoke-virtual {p1}, Lcom/instagram/android/model/n;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    move v0, v1

    .line 69
    :goto_4
    if-ge v0, v6, :cond_4

    if-ge v0, v3, :cond_4

    .line 70
    iget-object v1, p0, Lcom/instagram/android/a/b/ai;->g:[Lcom/instagram/android/mediacache/IgImageView;

    aget-object v1, v1, v0

    invoke-virtual {v1, v2}, Lcom/instagram/android/mediacache/IgImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 69
    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    .line 57
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->f:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, v5}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    goto :goto_3

    .line 73
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->b:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {v0, v2}, Lcom/instagram/android/mediacache/CircularImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 74
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 75
    iget-object v0, p0, Lcom/instagram/android/a/b/ai;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 79
    :cond_5
    return-void
.end method
